#!/usr/bin/env python
#! -*- coding: utf-8 -*-

import pymongo

class Config(object):
    """
    配置
    """
    DAY_COUNT = 1
    db_mongo = {
        "host": "10.10.61.31",
        # "host": "10.10.2.149",
        "port": 27017,
        "username": "opsmart",
        "password": r"q1w2e3r4",
        "db_name": "miaozhen",
        # "db_name": "neikong",
    }

CONF = Config()

py_client = pymongo.MongoClient(
    host=CONF.db_mongo['host'],
    username=CONF.db_mongo['username'],
    password=CONF.db_mongo['password'],
    authSource='miaozhen',
    authMechanism='SCRAM-SHA-1'
)

db_bencao_app = {
    "connector": "postgresql",
    "host": "10.10.61.37",
    "port": 5432,
    "user": "opsmart",
    "pwd": "q1w2e3r4",
    "db": "bencao_app"
}


# HIS 数据库配置
ORCL_HIS = {
    "host"  : "10.10.2.11",
    "port"  : "1521",
    "username"  : "portal_his",
    "password"  : r"yRbjr3qx",
    "dsn"   : "orcl"
}
